//	S_TAB_N_TRIM_MAN.hsp

/*title this*/_4title=__FILE__:split _4title,".",_4title:title _4title.0

//	Opmesboxp
sdim s,65000
//	m[gpbhp
sdim t,65000

objsize 100,20
button "trim S",*_do_trim_S
pos 100,0
button "trim TAB",*_do_trim_TAB
pos 200,0
button "trim \\n",*_do_trim_N
pos 300,0
button "WRITE_LINE",*_do_exec
pos 0,20
	font "",18
	objmode 2
//	sg̑Opmesbox
	mesbox s,600,455,5
	ID4mesbox=stat
	
	stop
	
*_do_trim_S
	t=s
	notesel t
	repeat notemax
	tmp_A=""
	tmp_B=""
	noteget tmp_A,cnt
	tmp_B=strtrim(tmp_A,3,' ')
	noteadd tmp_B,cnt,1
	loop
//	notepadۑ
	notesave "tmp.txt"
//	𗘗pĕ\
	exec "notepad tmp.txt"
	stop
*_do_trim_TAB
	t=s
	notesel t
	repeat notemax
	tmp_A=""
	tmp_B=""
	noteget tmp_A,cnt
	tmp_B=strtrim(tmp_A,3,'\t')
	noteadd tmp_B,cnt,1
	loop
//	notepadۑ
	notesave "tmp.txt"
//	𗘗pĕ\
	exec "notepad tmp.txt"
	stop
*_do_trim_N
	t=s
	notesel t
	i=0
	for i,0,notemax,1
	tmp_A=""
	tmp_B=""
	noteget tmp_A,i
	if strlen(tmp_A)==0{
		if i < notemax {
			notedel i
			i-=1
	}	}
	next
//	notepadۑ
	notesave "tmp.txt"
//	𗘗pĕ\
	exec "notepad tmp.txt"
	stop
*_do_exec
	exec "Ys_B03\\WRITE_LINE.exe"
	stop
	